export const onePartData =      {
    data: [
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        },
        {
            product_code: 'A223223',
            product_amount: '1',
            zc_code: 'A223223',
            zc_amount: '1',
            zcz_code: 'A223223',
            zcz_amount: '1',
            dg_code: 'A223223',
            dg_amount: '1',
            dgb_code: 'A223223',
            dgb_amount: '1',
            ld_amount: '1',
            finish_rate: '100%'
        }
    ],
    headers: [
        {
            name: '产品型号',
            code: 'product_code'
        },
        {
            name: '产品数量',
            code: 'product_amount'
        },
        {
            name: '轴承型号',
            code: 'zc_code'
        },
        {
            name: '轴承数量',
            code: 'zc_amount'
        },
        {
            name: '轴承座型号',
            code: 'zcz_code'
        },
        {
            name: '轴承座数量',
            code: 'zcz_amount'
        },
        {
            name: '端盖型号',
            code: 'dg_code'
        },
        {
            name: '端盖数量',
            code: 'dg_amount'
        },
        {
            name: '端盖连接板型号',
            code: 'dgb_code'
        },
        {
            name: '端盖连接板数量',
            code: 'dgb_amount'
        },
        {
            name: '螺钉数量',
            code: 'ld_amount'
        },
        {
            name: '完成情况',
            code: 'finish_rate'
        }
    ]
}

export const twoPartData = {
    data: [
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        },
        {
            workorder_id: '1293038',
            kind: '产品类型',
            post_time: '2024-01-11 10:38',
            product_amount: '21',
            finish_amount: '19'
        }
    ],
    headers: [
        {
            name: '工单号',
            code: 'workorder_id'
        },
        {
            name: '产品类型',
            code: 'kind'
        },
        {
            name: '下发时间',
            code: 'post_time'
        },
        {
            name: '生产数量',
            code: 'product_amount'
        },
        {
            name: '完成数量',
            code: 'finish_amount'
        }
    ]
}

export const thirdPartData = {
    colors: [
        ['#00FFFF', 'rgba(0, 153, 153, 0.10)'],
        ['#80D5FF', 'rgba(204, 238, 255, 0.20)']
    ],
    x: ['04/12', '04/13', '04/14', '04/15', '04/16', '04/17', '04/18'],
    y: [''],
    config: {
        notShowLegend: true
    },
    data: [
        {
            name: '计划',
            showLabel: false,
            y: 0,
            type: 'bar',
            data: [14000, 2000, 6000, 15464, 17777, 18888, 9999],
            markLine: 0
        },
        {
            name: '实际',
            showLabel: false,
            y: 0,
            type: 'bar',
            data: [8888, 5666, 1899, 16891, 18641, 21158, 6179],
            markLine: 0
        }
    ]
}

export const fourthPartData = [
    { name: '合格', value: 10 },
    { name: '不合格', value: 5 }
]

export const leftTopData = [
    {
        amount: 7,
        status: 0
    },
    {
        amount: 0,
        status: 2
    },
    {
        amount: 0,
        status: 1
    }
]

export const leftMiddleData = [
    0, 1, 1, 1, 0, 1, 0,
    0, 1, 1, 0, 1, 1, 1,
    0, 1, 0, 1, 1, 0, 1
]

export const leftBottomData = {
    colors: [
        ['#00FFFF', '#00FFFF'],
        ['#80D5FF', '#80D5FF']
    ],
    x: ['工位一', '工位二', '工位三', '工位四', '工位五'],
    y: ['', '%'],
    config: {
        notShowLegend: true
    },
    data: [
        {
            name: '产量',
            showLabel: false,
            y: 0,
            type: 'line',
            data: [5000, 4000, 3000, 6000, 8888],
            markLine: 0
        },
        {
            name: '良品率',
            showLabel: false,
            y: 1,
            type: 'line',
            data: [83.6, 76.6, 66.6, 56.6, 88.8, 83.9],
            markLine: 0
        }
    ]
}

export const centerBottomData = {
    colors: [
        ['#00FFFF', '#00FFFF'],
        ['#80D5FF', '#80D5FF']
    ],
    x: ['04.07', '04.08', '04.09', '04.10', '04.11'],
    y: ['', '%'],
    config: {
        notShowLegend: true
    },
    data: [
        {
            name: '产量',
            showLabel: false,
            y: 0,
            type: 'line',
            data: [50000, 40000, 20000, 6000, 36548],
            markLine: 0
        },
        {
            name: '良品率',
            showLabel: false,
            y: 1,
            type: 'line',
            data: [54.6, 79.6, 89.6, 98.1, 99.9, 87.9],
            markLine: 0
        }
    ]
}

export const rightTopData = {
    colors: [
        ['#00FFFF', 'rgba(0, 255, 255, 0)']
    ],
    x: ['08:00', '10:00', '12:00', '14:00', '16:00', '18:00'],
    y: [''],
    config: {
        notShowLegend: true,
        showAreaStyle: true
    },
    data: [
        {
            name: '产量',
            showLabel: false,
            y: 0,
            type: 'line',
            data: [2000, 2200, 3600, 4200, 7600, 8800],
            markLine: 0
        }
    ]
}

export const rightBottomData = {
    legend: [
        {
            name: '预警',
            value: 20,
            color: '#FFC117'
        },
        {
            name: '告警',
            value: 20,
            color: '#FF7600'
        },
        {
            name: '升级告警',
            value: 20,
            color: '#FF4417'
        },
        {
            name: '已解决',
            value: 190,
            color: '#17FFB8'
        }
    ],
    table: {
        data: [
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '升级告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '预警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '升级告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '升级告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '预警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '升级告警'
            },
            {
                device: '子总成装配',
                stop_kind: '质量中断',
                stop_time: '208min\n01-11 10:38',
                status: '升级告警'
            }
        ],
        headers: [
            {
                name: '设备',
                code: 'device'
            },
            {
                name: '停机类型',
                code: 'stop_kind'
            },
            {
                name: '停机时间',
                code: 'stop_time'
            },
            {
                name: '状态',
                code: 'status'
            }
        ]
    }
}
